<?php
if(!defined("ADMREAD")) exit();
global $conf,$a,$sess,$lang,$ADMIN_PERM_ARRAY,$ADMIN_ID,$CHECK_ADMIN;
$block = array();
if (in_array('news',$ADMIN_PERM_ARRAY) || in_array($ADMIN_ID,$CHECK_ADMIN['admid'])) {
    $block['id'] = 'news';
    $block['title'] = $lang['menu_news'];
    $block['link'] = array(
    'news.php?dn=index&ops='.$sess['hash'] => $lang['all_set'],
    'news.php?dn=newslist&ops='.$sess['hash'] => $lang['news_all'],
    'news.php?dn=newscat&ops='.$sess['hash'] => $lang['all_cat'],
    'news.php?dn=newscatadd&ops='.$sess['hash'] => $lang['all_add_cat'],
    'news.php?dn=newsadd&ops='.$sess['hash'] => $lang['news_add']
    );
    if ($conf['naddit'] == 'yes') {
        $block['link'] = @array_merge($block['link'],array('news.php?dn=newsnew&ops='.$sess['hash'] => $lang['addit_new']));
    }
    if ($conf['ntags'] == 'yes') {
        $block['link'] = @array_merge($block['link'],array('news.tag.php?dn=index&ops='.$sess['hash'] => $lang['all_tags']));
    }
    if ($conf['ncomact'] == 'yes') {        $block['link'] = @array_merge($block['link'],array('news.php?dn=newscomment&ops='.$sess['hash'].(($a) ? '&ajax=1' : '') => array($lang['menu_comment'],true)));
    }
}
?>